home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 361_01 / beep.c < prev    next >
C/C++ Source or Header  |  1991-09-18  |  456b  |  20 lines

  1.  
  2. /* Beep.c --> Right out of Turbo-C Bible.
  3.  *
  4.  * Author: J.Ekwall                                     13 September 91
  5.  *
  6.  * Copyrighted to the Public Domain.  Unlimited Distribution Authorized.
  7.  *
  8.  * User Assumes All Risks/Liabilities.
  9.  *
  10.  * Last Update: 13 September 91/EK
  11.  */
  12.  
  13. #include <stdek.h>
  14. #include <gadgets.h>
  15. #include <dos.h>
  16.  
  17. void Beep(unsigned int Pitch, unsigned int Duration)
  18. { sound(Pitch); delay(Duration); nosound(); }
  19.  
  20.